package service

import (
	"pq/manager"
)

func NewSubjectService() subjectService {
	ss := subjectService{}
	ss.subjectManager = manager.NewNormalSubjectManager()
	return ss
}
type subjectService struct{
	subjectManager *manager.NormalSubjectManager
}

func (ss *subjectService) SetToResource(subjectId int){
	subjectDto := ss.subjectManager.GetInfo(subjectId)
	ss.subjectManager.SetToResource(subjectDto)
}
